package com.kangdi.server.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.kangdi.server.pojo.Employee;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDate;
import java.util.List;

/**
 * <p>
 * InnoDB free: 7168 kB; (`departmentId`) REFER `yeb/t_department`(`id`); (`jobLeve Mapper 接口
 * </p>
 *
 * @author kangdi
 * @since 2022-10-04
 */
public interface EmployeeMapper extends BaseMapper<Employee> {

    IPage<Employee> getEmployeeByPage(Page<Employee> employeePage, Employee employee, LocalDate[] beginDateScope);

    /**
     * 员工信息下载
     * @param id
     * @return
     */
    List<Employee> getEmployee(@Param("id") Integer id);

    /**
     * 查询所有员工的工资账套
     * @param employeePage
     * @return
     */
    IPage<Employee> getEmployeeWithSalary(Page<Employee> employeePage);
}
